package com.pimee.service.admin;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.pimee.model.SysUserOnline;
import com.pimee.service.IBaseService;

public interface ISysUserOnlineService extends IBaseService<SysUserOnline> {
	/**
	 * 查找过期的在线用户
	 * 
	 * @param expiredDate
	 * @return
	 */
	List<SysUserOnline> selectOnlineByExpired(Date expiredDate);

	/**
	 * 通过sessionId删除在线用户
	 * 
	 * @param sessionId
	 */
	void deleteOnlineBySessionId(String sessionId);

	/**
	 * 通过sessionId获取在线用户
	 * 
	 * @param sessionId
	 * @return
	 */
	SysUserOnline selectOnlineBySessionId(String sessionId);

	/**
	 * 删除掉线用户
	 * 
	 * @param needOfflineIdList
	 */
	void batchDeleteOnline(List<String> needOfflineIdList);

	/**
	 * 保存在线用户
	 * 
	 * @param param
	 */
	void saveOnline(SysUserOnline param);

	/**
	 * 分页列表
	 * 
	 * @param params
	 * @return
	 */
	PageInfo<Map<String, Object>> pageList(Map<String, Object> params);

}
